package qc.common.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 时间范围长度枚举
 *
 * @author QuCheng Tech
 * @since 2023/8/14
 */
@Getter
@AllArgsConstructor
public enum TimeRangeLengthEnum {
    CUSTOM(0, "自定义"),
    MINUTE(1, "分钟"),
    HOUR(2, "小时"),
    DAY(3, "天"),
    WEEK(4, "周"),
    TEN_DAYS(5, "旬"),
    MONTH(6, "月"),
    QUARTER(7, "季度"),
    YEAR(8, "年");

    @EnumValue
    private int index;
    private String name;
}
